package br.com.naybee.client;

import br.com.naybee.framework.client.componente.gwt.event.CommHandler;
import br.com.naybee.framework.client.componente.gwt.servico.Service;
import br.com.naybee.framework.client.models.Model;

import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;

public class NaybeeService extends Service {

	public NaybeeService(String frontService, String method) {
		StringBuilder url = new StringBuilder().append(GWT.getHostPageBaseURL()).append("services/").append(frontService).append("/").append(method);

		setUrl(URL.encode(url.toString()));
	}

	@Override
	public void post(Model params, CommHandler handler) {
		super.post(params, handler);
	}

}
